package com.aixin.csopservice.service.impl;

import com.aixin.csopservice.mapper.CustomerMapper;
import com.aixin.csopservice.service.ExcelService;
import com.aixin.csopuser.domain.CustomerDomain;
import com.aixin.csopuser.model.CustomerModel;
import com.aixin.framework.web.domain.server.Sys;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class ExcelServiceImpl implements ExcelService {

    @Autowired
    CustomerMapper customerMapper;

    @Override
    public List<CustomerDomain> getCustomer(CustomerModel customerModel) {
        if(customerModel.getEquityType()==0){
            customerModel.setEquityType(99);
        }
        return customerMapper.getCustomer(customerModel);
    }
}
